﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using MahApps.Metro.Controls;

namespace SpectrumAnalyser.Shell.Controls
{
    /// <summary>
    /// Interaction logic for ItemListDialog.xaml
    /// </summary>
    public partial class ItemListDialog : MetroWindow
    {
        public ItemListDialog()
        {
            InitializeComponent();
        }

        public ListBox ItemList
        {
            get { return ItemListBox; }
        }

        private void Ok(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }

        private void Cancel(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
            Close();
        }

        private void OnItemDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
